package 设计模式.单例模式;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/18 23:31
 */
public class enumSingle {
    private enumSingle(){
    }
    public static enum SingleEnum{
        SINGLE_ENUM;
        private enumSingle enumSingle = null;
        private SingleEnum(){
            enumSingle = new enumSingle();
        }
        public enumSingle getEnumSingle(){
            return enumSingle;
        }
    }
}
